﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Beaker50Mouse : MonoBehaviour
{
    public RodBottom rod_bottom;
    public Beaker250ml m_Beaker250;
    public GameObject m_Beaker50Water;
    public Beaker50ml m_Beaker50;

    [HideInInspector]
    public bool OnRod;

    private void OnTriggerExit(Collider other)
    {
        if (other.name == "The_stirring_rod")
        {
            OnRod = false;
        }
    }

    private void OnTriggerEnter(Collider other)
    {
        Debug.LogWarning(other.name + rod_bottom.OnFunnelWall);
        if (other.name == "The_stirring_rod" && rod_bottom.OnFunnelWall)
        {
            OnRod = true;
            StepsManager.Instance.StepFourNum[0] = true;
            StepsManager.Instance.SetStepFour(0);
            m_Beaker250.m_Start = true;
            m_Beaker50Water.SetActive(false);
            m_Beaker50.CanClear = true;
        }
    }
}
